package com.zhu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhu.domain.Cities;
import com.zhu.mapper.CitiesMapper;
import com.zhu.service.CitiesService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 行政区域地州市信息表 服务实现类
 * </p>
 *
 * @author JoyBoy
 * @since 2022-06-02
 */
@Service
public class CitiesServiceImpl extends ServiceImpl<CitiesMapper, Cities> implements CitiesService {
    @Override
    public List<Cities> getCities(String provinceId) {
        QueryWrapper<Cities> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("provinceid",provinceId);
        return this.list(queryWrapper);
    }
}
